<%@page contentType="text/html; UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登录界面</title>
</head>
<script src="https://libs.baidu.com/jquery/1.8.3/jquery.js"></script>
<script type="text/javascript">
</script>
<body align="center">
<h2>用户登录</h2>
<form action="${pageContext.request.contextPath}/user/login" method="post" enctype="multipart/form-data">
    <table align="center">
        <tr align="right">
            <td>请输入用户名:</td>
            <td><input type="text" name="username" id="username" autofocus="autofocus"></td>
        </tr>

        <tr align="right">
            <td>请输入密码:</td>
            <td><input type="password" name="password" id="password"></td>
        </tr>

    </table>
    <br>

    <input type="submit" name="register" value="登录"  onclick="submitForm()">&nbsp&nbsp&nbsp
    <input type="button" class="button" onclick="location.href='${pageContext.request.contextPath}/regist.jsp'" value="注册" >
</form>

</body>
</html>
